﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Web.Script.Services;
using System.Web.Services;
using phudieuhungthinh.BL;

namespace phudieuhungthinh.Services
{
    /// <summary>
    ///     Summary description for Handler
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    [ScriptService]
    public class Handler : WebService
    {
        [WebMethod(true)]
        public List<string> GetFileInfos(string folder)
        {
            var impl = new ProductImpl();
            return impl.GetFileInfos(Server.MapPath("~/images/" + folder + "/thumb/"));
        }
    }
}